#include<unistd.h>
#include<stdio.h>
#include<sys/types.h>
#include<sys/wait.h>
#include<stdlib.h>
int main()
{
    char* env[] = {
        "WHO:Mango",
        "SHELL:bash",
        "PWD:/home",
        NULL
    };
    char* argv[] = {"./myexe",NULL};
    if(fork() == 0)
    {
        printf("I am child pid:%d\n",getpid());
        //execve("./myexe",argv,env);
        execle("./myexe","./myexe",NULL,env);
        exit(1);
    }
    waitpid(-1,NULL,0);
    return 0;
}